package com.cssl.springbootdemo01.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cssl.springbootdemo01.pojo.Users;
import com.mongodb.client.result.DeleteResult;

import java.util.List;

public interface UsersService  extends IService<Users> {
    //查询所有
    public List<Users> select();

    //查询所有
    public List<Users> find();
    //增
    public boolean insert(int id);
    //删
    public boolean delete(int id);
    //改
    public boolean update(int id);

    //cacheable
    public Users findByid(int id);

    public boolean eDelete(int id);


    //mongodb
    public List<Users> findByUname(String username);

    public Users saveUsers(Users users);

    public List<Users> findAll();

    public void removeUsers(int uid);

}
